package com.pand.model.user;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 
 * @ClassName: UserVehicle
 * @Description:用户与车辆关系表
 *
 */
@Entity
@Table(name = "SYS_USER_VEHICLE")
@SequenceGenerator(name = "UserVehIdSEQ", sequenceName = "SEQ_SUSER_VEH", allocationSize = 1)
public class UserVehicle implements Serializable {

	/**
	 * @Fields serialVersionUID :
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 车辆ID
	 */
	private Long vehId;

	/**
	 * 用户ID
	 */
	private Long userId;

	/**
	 * 主键
	 */
	private Long id;

	@Column(name = "VEHICLE_ID")
	public Long getVehId() {
		return vehId;
	}

	public void setVehId(Long vehId) {
		this.vehId = vehId;
	}

	@Column(name = "USER_ID")
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Id
	@GeneratedValue(generator = "UserVehIdSEQ")
	@Column(name = "SUVID")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
}
